package com.xdjmall.dao;

import java.sql.SQLException;
import java.util.List;
import com.xdjmall.entity.Category;
import com.xdjmall.util.QueryCondition;

public interface CategoryDao extends BaseDao<Category> {
	// 根据类别等级和类别名查询
	Category selectByLevelAndName(Integer categoryLevel, String categoryName)throws SQLException;
	// 得到分页后的数量
	Integer selectTotalCategories(QueryCondition condition)throws SQLException;
	// 批量删除
    Integer deleteBatch(Integer[] ids)throws SQLException;
    // 根据等级和父ID和数量查询
    List<Category> selectByLevelAndParentIdsAndNumber(List<Integer> parentIds,
            Integer categoryLevel,Integer number)throws SQLException;
    // 根据等级和夫等级查询
    List<Category> selectCategoryList(QueryCondition condition) throws SQLException;
}
